package com.lph.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.lph.model.Enterprise;
import com.lph.model.Msg;
import com.lph.service.BaseServiceI;

@Controller
@RequestMapping("/ec")
public class EnterpriseController extends BaseController<Enterprise>{
	@Resource(name="enterpriseService")
	private BaseServiceI<Enterprise> ebsi;
	
	@Override
	public List<Enterprise> find(Enterprise t) {
		// TODO Auto-generated method stub
		return ebsi.find(t);
	}
	@Override
	public Msg insert(Enterprise t, @RequestParam(required=false,value="file")MultipartFile[] files) {
		// TODO Auto-generated method stub
		return ebsi.insert(t);
	}
	
}
